﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.ObjectModel;

namespace Clipper.Model.ViewModel
{
    /// <summary>
    /// 试剂设置
    /// </summary>
    public class ReagentKitVM:AbstractModel
    {
        ObservableCollection<ReagentKit> _reagentKitList;
        /// <summary>
        /// 试剂盘设置
        /// </summary>
        public ObservableCollection<ReagentKit> ReagentKitList
        {
            get
            {
                return _reagentKitList;
            }
            set
            {
                _reagentKitList = value;
                this.NotifyPropertyChanged("ReagentKitList");
            }

        }
        Dictionary<string,ReagentKitStatistics> _reagentItemList;
        /// <summary>
        /// 检测项对应试剂列表
        /// </summary>
        public Dictionary<string, ReagentKitStatistics> ReagentItemList
        {
            get
            {
                if (_reagentItemList == null)
                {
                    _reagentItemList = new Dictionary<string, ReagentKitStatistics>();
                }
                return _reagentItemList;
            }
            set
            {
                _reagentItemList = value;
                NotifyPropertyChanged("ReagentItemList");
            }
        }
        ObservableCollection<string> _needReagentItem = new ObservableCollection<string>();
        /// <summary>
        /// 需要补充试剂的检测项
        /// </summary>
        public ObservableCollection<string> NeedReagentItem
        {
            get
            {
                return _needReagentItem;
            }
            set
            {
                _needReagentItem = value;
                NotifyPropertyChanged("NeedReagentItem");
            }
        }

        SubstrateInfo _substrateInfo;
        /// <summary>
        /// 底物信息
        /// </summary>
        public SubstrateInfo SubstrateInfo
        {
            get
            {
                return _substrateInfo;
            }
            set
            {
                _substrateInfo = value;
                this.NotifyPropertyChanged("SubstrateInfo");
            }
        }
        /// <summary>
        /// 底物安装日期
        /// </summary>
        public string SubstrateDate
        {
            get
            {
                return _substrateInfo.changeDate.ToString("yyyy-MM-dd");
            }
        }

    }
}
